/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;
import javax.persistence.Temporal;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="CONVENIOSMEDICTOS")
public class ConveniosMedictosProteu implements Serializable{

    @Id
    @Column(name="CMT_IN_CODIGO")
    private Integer cmtInCodigo;
    @Column(name="CON_ST_CODIGO")
    private String conStCodigo;
    @Column(name="CON_ST_PLA_CODIGO")
    private String conStPlaCodigo;
    @Column(name="CLM_IN_CODIGO")
    private Integer clmInCodigo;
    @Column(name="CMT_FL_DESCONTO")
    private Float cmtFlDesconto;
    @Column(name="CMT_FL_ACRESCIMO")
    private Float cmtFlAcrescimo;
    @Column(name="CMT_DT_REAJUSTE")
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date cmtDtReajuste;
    @Column(name="CMT_DT_ALTERACAO")
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date cmtDtAlteracao;
    @Lob
    @Column(name="CMT_BL_OBSERVACAO")
    private String cmtBlObservacao;//blob
    @Column(name="USU_IN_CODIGO")
    private Integer usuInCodigo;


    public Integer getClmInCodigo() {
        return clmInCodigo;
    }

    public void setClmInCodigo(Integer clmInCodigo) {
        this.clmInCodigo = clmInCodigo;
    }

    public String getCmtBlObservacao() {
        return cmtBlObservacao;
    }

    public void setCmtBlObservacao(String cmtBlObservacao) {
        this.cmtBlObservacao = cmtBlObservacao;
    }

    public Date getCmtDtAlteracao() {
        return cmtDtAlteracao;
    }

    public void setCmtDtAlteracao(Date cmtDtAlteracao) {
        this.cmtDtAlteracao = cmtDtAlteracao;
    }

    public Date getCmtDtReajuste() {
        return cmtDtReajuste;
    }

    public void setCmtDtReajuste(Date cmtDtReajuste) {
        this.cmtDtReajuste = cmtDtReajuste;
    }

    public Float getCmtFlAcrescimo() {
        return cmtFlAcrescimo;
    }

    public void setCmtFlAcrescimo(Float cmtFlAcrescimo) {
        this.cmtFlAcrescimo = cmtFlAcrescimo;
    }

    public Float getCmtFlDesconto() {
        return cmtFlDesconto;
    }

    public void setCmtFlDesconto(Float cmtFlDesconto) {
        this.cmtFlDesconto = cmtFlDesconto;
    }

    public Integer getCmtInCodigo() {
        return cmtInCodigo;
    }

    public void setCmtInCodigo(Integer cmtInCodigo) {
        this.cmtInCodigo = cmtInCodigo;
    }

    public String getConStCodigo() {
        return conStCodigo;
    }

    public void setConStCodigo(String conStCodigo) {
        this.conStCodigo = conStCodigo;
    }

    public String getConStPlaCodigo() {
        return conStPlaCodigo;
    }

    public void setConStPlaCodigo(String conStPlaCodigo) {
        this.conStPlaCodigo = conStPlaCodigo;
    }

    public Integer getUsuInCodigo() {
        return usuInCodigo;
    }

    public void setUsuInCodigo(Integer usuInCodigo) {
        this.usuInCodigo = usuInCodigo;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final ConveniosMedictosProteu other = (ConveniosMedictosProteu) obj;
        if (this.cmtInCodigo != other.cmtInCodigo && (this.cmtInCodigo == null || !this.cmtInCodigo.equals(other.cmtInCodigo))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 43 * hash + (this.cmtInCodigo != null ? this.cmtInCodigo.hashCode() : 0);
        return hash;
    }



}
